package basic.com.liz.learn.design.iterator;

public class Test
{
    public static void main(String[] args)
    {
        Collection c = new MyCollection();
        Iterator i = c.iterator();
        
        while (i.hasNext())
        {
            System.out.println(i.next());
            System.out.println(c.remove("3"));
           
        }
    }
}
